package com.mall.api.pay.client;

import com.mall.api.pay.config.DefaultFeignConfig;
import com.mall.api.pay.dto.PayDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "pay-service", configuration = DefaultFeignConfig.class)
public interface PayClient {

    @GetMapping("/payment/pay")
    String pay(@RequestParam("aliPayDTO") PayDTO payDTO);


}
